package com.wwdablu.soumya.lottiebottomnav;

import ohos.agp.text.Font;

/**
 * FontItem
 *
 * @since 2021-05-19
 */
public class FontItem {
    private String spannableTitle;
    private
    int textSelectedColor;
    private
    int textUnselectedColor;
    private int selectedTextSize;
    private int unselectedTextSize;
    private Font typeface;

    FontItem(FontItem fontItem) {
        this.spannableTitle = fontItem.spannableTitle;
        this.textSelectedColor = fontItem.textSelectedColor;
        this.textUnselectedColor = fontItem.textUnselectedColor;
        this.selectedTextSize = fontItem.selectedTextSize;
        this.unselectedTextSize = fontItem.unselectedTextSize;
        this.typeface = fontItem.typeface;
    }

    FontItem(String spannableTitle,
             int textSelectedColor,
             int textUnselectedColor,
             int selectedTextSize,
             int unselectedTextSize,
             Font typeface) {
        this.spannableTitle = spannableTitle;
        this.textSelectedColor = textSelectedColor;
        this.textUnselectedColor = textUnselectedColor;
        this.selectedTextSize = selectedTextSize;
        this.unselectedTextSize = unselectedTextSize;
        this.typeface = typeface;
    }

    /**
     * setTitle
     *
     * @param spannableTitle
     */
    void setTitle(String spannableTitle) {
        this.spannableTitle = spannableTitle;
    }

    /**
     * setTextSelectedColor
     *
     * @param textSelectedColor
     */
    void setTextSelectedColor(int textSelectedColor) {
        this.textSelectedColor = textSelectedColor;
    }

    /**
     * setTextUnselectedColor
     *
     * @param textUnselectedColor
     */
    void setTextUnselectedColor(int textUnselectedColor) {
        this.textUnselectedColor = textUnselectedColor;
    }

    /**
     * setTypefaceCompat
     *
     * @param typeface
     */
    void setTypefaceCompat(Font typeface) {
        this.typeface = typeface;
    }

    /**
     * getSpannableTitle
     *
     * @return String
     */
    String getSpannableTitle() {
        return spannableTitle;
    }

    /**
     * setSelectedTextSize
     *
     * @param selectedTextSize
     */
    void setSelectedTextSize(int selectedTextSize) {
        this.selectedTextSize = selectedTextSize;
    }

    /**
     * setUnselectedTextSize
     *
     * @param unselectedTextSize
     */
    void setUnselectedTextSize(int unselectedTextSize) {
        this.unselectedTextSize = unselectedTextSize;
    }

    /**
     * getTextSelectedColor
     *
     * @return int
     */
    public int getTextSelectedColor() {
        return textSelectedColor;
    }

    /**
     * getTextUnselectedColor
     *
     * @return int
     */
    public int getTextUnselectedColor() {
        return textUnselectedColor;
    }

    /**
     * getSelectedTextSize
     *
     * @return int
     */
    public int getSelectedTextSize() {
        return selectedTextSize;
    }

    /**
     * unselectedTextSize
     *
     * @return int
     */
    public int getUnselectedTextSize() {
        return unselectedTextSize;
    }

    /**
     * getTypeface
     *
     * @return Font
     */
    public Font getTypeface() {
        return typeface;
    }
}

